import axios from '~/axios'
import { queryParams } from '~/composables/util.js'

export function getaAgentList(page,query = {}){
    let r = queryParams(query)
    return axios.get(`/admin/agent/${page}${r}`)
}
export function getaAgentOrderList(page,query = {}){
    let r = queryParams(query)
    return axios.get(`/admin/user_bill/${page}${r}`)
}
export function getAgentStatistics(){
    return axios.get(`/admin/agent/statistics`);
}
export function getConfig(){
    return axios.get("/admin/distribution_setting/get")
}
export function setConfig(data){
    return axios.post(`/admin/distribution_setting/set`,data)
}